/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package chatcommon;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Hai Nguyen <hain186@gmail.com>
 */
public class ChatCommon {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Map<Integer, String> aa = new HashMap<Integer, String>();
        aa.put(1, "a");
        aa.put(2, "b");
        aa.put(1, "c");
        for (Map.Entry<Integer, String> entry : aa.entrySet()) {
            Integer integer = entry.getKey();
            String string = entry.getValue();
            System.out.println(integer + " -> "+ string);
        }
    }
}
